<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="utf-8">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="Content-Language" content="UTF-8" />
  <meta content="all" name="robots" />
  <meta name="author" content="tiger"/>
  <meta name="Copyright" content="jinzhou group" />
  <meta name="description" content="jinzhou group oa" />
  <title>审批</title>
  <link rel="stylesheet" type="text/css" href="../css/default/wf_examin2.css" />
  <script language="javascript" src="../js/jquery/jquery.js"></script>
  <script language="javascript" src="../js/pub-jquery.js"></script>
  <script language="javascript" src="../js/jquery/jquery.simplemodal.js"></script>
  <script language="javascript" src="../js/default/wf_examin2.js"></script>
</head>
<body>
<div class="container">
	<!-- <h1 class="page_header_1">审批</h1>
	<hr />
	-->
	<div id="operation_bar">
		<input type="hidden" id="doc_id" name="doc_id" value="<% $doc_id %>" />
		<input type="hidden" id="user_id" name="user_id" value="<% $session_id %>" />
		<input type="hidden" id="is_multi_flag" name="is_multi_flag" value="<% if $ispartner==1 %>1<% else %>0<% /if %>" />
		<input type="hidden" id="doc_mulpnt" name="doc_mulpnt" value="<% $doc_mulpnt %>" />
		<input type="hidden" id="doc_receiver_list" name="doc_receiver_list" value="" />
		<input type="hidden" id="doc_next_receiver" name="doc_next_receiver" value="0" />
		<input type="hidden" id="ispartner" name="ispartner" value="<% $ispartner %>" />
		<input type="hidden" id="goon_or_finish" name="goon_or_finish" value="1" />
		<input type="hidden" id="exam_opinion" name="exam_opinion" value="0" />
		<span>操作：</span>
		<input type="button" id="opt_1" name="opt_2" disabled="disabled" value="继续流转" />
		<input type="button" id="opt_2" name="opt_2" disabled="disabled" value="结束审批" />
		<input type="button" id="opt_3" name="opt_3" value="关闭" />
	</div>
	<table id="doc_title_panel" cellspacing="0">
		<tr>
			<td class="ttitle">申请主题：</td>		
			<td colspan="3"><input id="input_title" name="input_title" type="text" value="<% $doc_title %>" disabled="disabled" /></td>
			<td class="ttitle">类型：</td>
			<td><input id="input_docclass" name="input_docclass" type="text" value="<% $doc_tpl_class %> -&gt; <% $doc_tpl %>" disabled="disabled" /></td>
		</tr>
		<tr>
			<td class="ttitle">撰写人：</td>
			<td><input id="input_author" name="input_author" type="text" value="<% $doc_from %>" disabled="disabled" /></td>
			<td class="ttitle">发稿日期：</td>
			<td><input id="input_datetime" name="input_datetime" type="text" value="<% $doc_time %>" disabled="disabled" /></td>
			<td class="ttitle">紧急程度：</td>
			<td>
				<input id="input_instancy" name="input_instancy" type="text"
					value="<% switch from=$doc_instancy %><% case value="1" %>一般<% case value="2" %>紧急<% case %>加急<% /switch %>" disabled="disabled" />
			</td>
		</tr>
		<tr>
			<td class="ttitle">审批意见：</td>
			<td>
				<input type="radio" id="examin_opinion_1" name="examin_opinion[]" value="1" /> 同 意
				<input type="radio" id="examin_opinion_2" name="examin_opinion[]" value="2" /> 不同意
			</td>
			<td class="ttitle">意见内容：</td>
			<td colspan="3"><input id="input_opinion" name="input_opinion" type="text" /></td>
		</tr>
		<% if count($doc_accessory) != 0 %>
		<tr>
			<td class="ttitle">附件：</td>
			<td colspan="5">
				<div id="doc_accessory">
					<% foreach value=acc from=$doc_accessory %>
						<a href="<% $acc %>" target="_blank"><% $acc %></a>
					<% /foreach %>
				</div>
			</td>
		</tr>
		<% /if %>
	</table>
	<table id="doc_main_panel" cellspacing="0">
	<tr>
		<td id="doc_main_panel_left">
			<div id="doc_main_panel_left_body">
				<div id="doc_main_panel_left_body_content"><% $doc_content %></div>
			</div>
		</td>
		<td id="doc_main_panel_right">
			<% if $ispartner != 1 %>
			<div id="doc_main_panel_right_ismulti">
				<div><input type="radio" value="0" name="radio_ismulti[]" checked="checked" /> 单人审批</div>
				<div><input type="radio" value="1" name="radio_ismulti[]" /> 多人审批</div>
				<div class="doc_main_right_child_panel">
					<div>需要多少人才算通过？</div>
					<div>
						<select id="doc_main_right_select_1">
							<option value="1">全数</option>
							<option value="0.5">半数</option>
							<option value="0.333">1/3 人数</option>
							<option value="0.666">2/3 人数</option>
							<option value="0.25">1/4 人数</option>
							<option value="0.75">3/4 人数</option>
						</select>
					</div>
				</div>
				<div class="doc_main_right_child_panel">
					<div>下列人员将参与审批：</div>
					<div><select size="8" id="doc_main_right_select_2"></select></div>
					<div>
						<input type="button" id="modify_selection" name="modify_selection" value="修改" />
					</div>
				</div>
			</div>
			<% /if %>
			<div id="validate_button">
				<div><input type="button" value="手写签名" /></div>
				<div><input type="button" value="添加本地签名" /></div>
				<div><input type="button" value="印章验证" /></div>
				<div><input type="button" value="添加本地印章" /></div>
			</div>
		</td>
	</tr>
	</table>
</div>

<!-- 多人审批选择 -->
<div id="multi_people_choosing" style="display:none;">
	<h3>选择收件人</h3>
	<hr />
	<table id="multi_people_choosing_table" cellspacing="0">
	<tr>
		<td>
			<fieldset>
				<legend>选择</legend>
				<div><select id="choose_company"></select></div>
				<div><select id="choose_section"></select></div>
				<div><select size="8" id="choose_people"></select></div>
			</fieldset>
		</td>
		<td>
			<p>&nbsp;</p><p>&nbsp;</p>
			<div><input id="choose_one" type="button" value="-&gt;" /></div>
			<br />
			<div><input id="remove_one" type="button" value="&lt;-" /></div>
		</td>
		<td>
			<fieldset>
				<legend>已选收件人</legend>
				<div><select id="chosen_people" size="10"></select></div>
				<div id="chosen_people_error" class="error" style="display:none;">您还未选择收件人！</div>
			</fieldset>
		</td>
	</tr>
	<tr>
		<td colspan="3">
			<input id="choose_ok" type="button" value=" 确 定 " />
		</td>
	</tr>
	</table>
</div>

<!-- 选择下一位审批者 -->
<div id="next_people_choosing" style="display:none;">
	<h3>选择收件人</h3>
	<hr />
	<table id="next_people_choosing_table" cellspacing="0">
	<tr>
		<td>
			<fieldset>
				<legend>选择</legend>
				<div><select id="next_choose_company"></select></div>
				<div><select id="next_choose_section"></select></div>
				<div><select size="8" id="next_choose_people"></select></div>
				<div id="next_chosen_people_error" class="error" style="display:none;">您还未选择收件人！</div>
			</fieldset>
		</td>
	</tr>
	<tr>
		<td colspan="3">
			<input id="next_choose_ok" type="button" value=" 确 定 " />
		</td>
	</tr>
	</table>
</div>


</body>
</html>
